﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
	$(function() {
		$('#report_tree').tree({			
			url : 'reportCatalogController.do?setPFunction&qyid=${enter.id}',	
			onLoadSuccess : function(node) {
				expandAll();
			},
			onClick: function(node){
				var id = node.id;
				toReportPanel(node.id);
			}
		});
	});
	
	function expandAll() {
		var node = $('#report_tree').tree('getSelected');
		if (node) {
			$('#report_tree').tree('expandAll', node.target);
		} else {
			$('#report_tree').tree('expandAll');
		}
	}
</script>


<div class="easyui-layout" fit="true">
	<div region="west" class="easyui-panel" style="padding: 1px;width: 200px;padding-top: 20px;" split="true" >
		<ul id="report_tree">
		</ul>
	</div>
	
	<div region="center"  >
		<div tools="#tt" class="easyui-panel" title="简报"
			style="padding: 10px;" fit="true" border="false" id="report-panel">
		</div>
	</div>
	
</div>
<script type="text/javascript">
	function toReportPanel(id){	
		$("#report-panel").panel(
			{
				title : "简报信息"
			}
		);
		$('#report-panel').panel("refresh", "reportInfoController.do?reportInfo&reportid="+id);
	}
</script>